package encapsulation;

/**
 * @classname:PM
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/27 22:10
 * @version: 0.1
 * @since:1.8
 */
public class PM {
    private int id;
    private String name;
    private String gender;
    private double salary;
    private int exp;
    private double bonus;
    public PM() {
        this.id = 00;
        this.name = "";
        this.gender ="男";
        this.salary = 0.0;
        this.exp = 0;
        this.bonus = 0.0;
    }
    public PM(int id, String name, String gender, double salary, int exp, double bonus) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.salary = salary;
        this.exp = exp;
        this.bonus = bonus;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getExp() {
        return exp;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }


    public void show() {
        System.out.println( "PM{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", exp=" + exp +
                ", bonus=" + bonus +
                '}');
    }
}
